﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace proyecto
{
    /// <summary>
    /// Lógica de interacción para SelectData.xaml
    /// </summary>
    public partial class SelectData : UserControl
    {
        ComboBox select = new ComboBox();

        public SelectData()
        {
            InitializeComponent();
            dockPanel1.Children.Add(select);
        }

        public SelectData(string [] names, int n)
        {
            
            InitializeComponent();
            
            for (int i = 0; i < n; i++)
            {

                select.Items.Add(names[i]);
            }

            dockPanel1.Children.Add(select);
            
        }

        public int getColumn(){
            return select.SelectedIndex;
        }


        private void textBox1_TextChanged(object sender, TextChangedEventArgs e)
        {

        }

        
    }
}
